/**
 * 
 */
package com.feib.stms.action;

import java.util.ArrayList;

import net.sourceforge.stripes.integration.spring.SpringBean;

import com.feib.stms.dao.TempDeliveryPaymentChkDao;
import com.feib.stms.model.TempDeliveryPaymentChk;
import com.feib.stms.model.UploadFile;
import com.feib.stms.service.DeliveryPaymentChkFileImportorService;
import com.feib.stms.service.FileImportorService;


/**
 * @title (#)Stms1001ActionBean.java<br>
 * @description 驗資資料上傳作業 Controller<br/>
 * <ul>
 * <li>需求說明: 使用者上傳驗資資料，查看客戶餘額是否足夠。</li>
 * <li>業務規則說明:
 * <ol>
 * <li>使用者上傳的是交割檔，系統再將交割檔轉成驗資檔。</li>
 * <li>上傳檔案為加密的檔案，系統必須解密。</li>
 * </ol></li>
 * <li>使用單位及角色:券商端</li>
 * </ul>
 * @author Jimmy Liu<br>
 * @version 1.0.0 2012/04/19
 * @copyright Far Eastern International Bank Copyright (c) 2012<br>
 * @2012/04/19 create by Jimmy Liu<br>
 */
public class Stms1001ActionBean extends BaseUploadActionBean 
{
	private static final long serialVersionUID = -2910990338071511465L;

	private static final String DEFAULT_JSP = "/WEB-INF/views/stms1001/stms1001.jsp";
	
	@SpringBean("deliveryPaymentChkFileImportor")
	private DeliveryPaymentChkFileImportorService deliveryPaymentChkFileImportorImpl;
	
	public Stms1001ActionBean() {
		super();
		super.fileFormats = new ArrayList<String>();
		super.fileFormats.add(getUploadFileFormat());
	}

	@Override
	protected String getDefaultPage() {
		return DEFAULT_JSP;
	}

	@Override
	public String getUploadFileFormat() {
		return UploadFile.UPLOAD_FILE_DELIVERY_PAYMENT_CHK;
	}

	@Override
	public FileImportorService<TempDeliveryPaymentChkDao, TempDeliveryPaymentChk> getFileImportorService() {
		return deliveryPaymentChkFileImportorImpl;
	}

	
}
